package com.chance.common.utils;

import java.util.Random;

public class VerifyCodeUtil {
    public static String getVerifyCode(int len) {
        StringBuilder stringBuilder = new StringBuilder();
        Random random = new Random();
        for (int i = 0; i < len; i++) {
            stringBuilder.append(random.nextInt(10));
        }
        return stringBuilder.toString();
    }
}
